package concept.chapter7.writtinggenericmethods;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * This class contains a method taking a generic collection
 * and a method taking generic input arguments. 
 * @author kan.sun
 *
 */
public class GenericMethod
{
	<K, V, T> void take(List<? extends T> list, Map<? super K, ? extends V> map)
	{
		List<? super String> list2 = new ArrayList<String>();
		list2.add("string");
	}
	
	<YourType, MyType> void get(MyType mt, YourType yt)
	{
		
	}
	
	<T extends AbstractList<W>, W> T get(T t)
	{
		return t;
	}
}
